package wnhz.com.business.freeshop.activity.fourthfree;

import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import wnhz.com.business.R;
import wnhz.com.business.base.BaseActivity;
import wnhz.com.business.impl.ActionBarClickListener;
import wnhz.com.business.view.TranslucentActionBarW;

public class FundActivity extends BaseActivity implements View.OnClickListener, ActionBarClickListener {

    @BindView(R.id.actionbar)
    TranslucentActionBarW actionbar;
    @BindView(R.id.view1)
    View view1;
    @BindView(R.id.tv_huangouquan)
    TextView tvHuangouquan;
    @BindView(R.id.tv_duihuanbi)
    TextView tvDuihuanbi;
    @BindView(R.id.tv_xianjinjuan)
    TextView tvXianjinjuan;
    @BindView(R.id.tv_duidou)
    TextView tvDuidou;
    @BindView(R.id.ll_head)
    LinearLayout llHead;
    @BindView(R.id.ll_tixian)
    LinearLayout llTixian;
    @BindView(R.id.view2)
    View view2;
    @BindView(R.id.ll_mycard)
    LinearLayout llMycard;
    @BindView(R.id.ll_shouyi)
    LinearLayout llShouyi;


    public static Intent createIntent(Context context) {
        Intent intent = new Intent(context, FundActivity.class);
        return intent;
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fund_f);
        ButterKnife.bind(this);
        actionbar.setData("我的钱包", R.drawable.ic_left_back, null, 0, "交易记录", 0, this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            //改变状态栏颜色
            this.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
            actionbar.setStatusBarHeight(getStatusBarHeight());
        }
        initView();
    }

    private void initView() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {

        }
    }

    @Override
    public void onLeftClick() {
        finish();
    }

    @Override
    public void onRightClick() {
        startActivity(JiaoYiRecordActivity.createIntent(this));
    }

    @Override
    public void onEditTextClick() {

    }


    @OnClick({R.id.ll_tixian, R.id.ll_mycard, R.id.ll_shouyi})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.ll_tixian://提现
                startActivity(TiXianActivity.createIntent(this));
                break;
            case R.id.ll_mycard://我的银行卡
                break;
            case R.id.ll_shouyi://我的圈子收益
                break;
        }
    }
}
